﻿using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using System.Collections.Generic;
using DG.Tweening;

namespace ScreenMgr {

    /// <summary>
    /// 一个简单的类来演示如何制作简单的补间屏幕
    /// </summary>
    public class SimpleTweenScreen: BaseScreen {
        
        public override void OnAnimationIn() {
            this.transform.localScale = Vector3.zero;
            this.transform.DOScale( Vector3.one, 0.5f).SetEase(Ease.OutBack).OnComplete(OnAnimationInEnd);
        }

        public override void OnAnimationOut() {
            this.transform.DOScale( Vector3.zero, 0.3f).SetEase(Ease.OutCubic).OnComplete(OnAnimationOutEnd);
        }
    }

}